package com.lbb.springbootstock.v2.job;

import com.lbb.springbootstock.v2.service.StockService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 14144
 */
@Component
public class StockJob {
    @Autowired
    private StockService stockService;

    @XxlJob("stockJob")
    public void stockJob() throws Exception {
        System.err.println("定时任务执行了。。。。。。。。。。");
        stockService.entrance();
    }

}
